package com.cn.dao;

import com.cn.bean.simple;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;

@Repository
public class SimpleDao {
    @Autowired
    JdbcTemplate jdbcTemplate;

    public void save(simple sim){
        String sql="insert into simple (name,adress) values(? , ?)";
        jdbcTemplate.update(sql,sim.getName(),sim.getAdress());
    }
}
